﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


class numbersNandXcalculatesTheSum
{
    static void Main()
    {
        Console.Write("Eneter N: ");
        int k = Convert.ToInt32(Console.ReadLine());
        decimal factorial = 1;
        decimal power = 1;
        decimal sum = 1;
        for (int i = 1; i <= k; i++) 
        {
            factorial *= i;
            power *= k;
            sum += (factorial / power);
        }
        Console.WriteLine(sum);
    }
}

